﻿using System.Web;
using System.Web.Optimization;

namespace Zhang.Admin
{
    public class BundleConfig
    {
        // 有关捆绑的详细信息，请访问 https://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            BundleTable.EnableOptimizations = false;
            #region CSS
            //平台通用css
            bundles.Add(new StyleBundle("~/css/common").Include(
                "~/skin/css/Common/*.css",
                "~/skin/css/Common/bootstrap.min.css",
                "~/skin/css/Common/materialdesignicons.min.css",
                "~/skin/css/Common/style.min.css"
            ));

            #endregion

            #region JS
            //平台通用JS
            bundles.Add(new ScriptBundle("~/js/common").Include(

                "~/skin/js/Common/jquery.min.js",
                "~/skin/js/Common/bootstrap.min.js",
                "~/skin/js/Common/perfect-scrollbar.min.js",
                "~/skin/js/Common/main.min.js",
                "~/skin/js/Common/Common.js"
            ));
            //图表
            bundles.Add(new ScriptBundle("~/js/Chart").Include(
                "~/skin/js/Common/Chart.js"
            ));
            //富文本
            bundles.Add(new ScriptBundle("~/js/editor").Include("~/xheditor/main.js", "~/xheditor/lang/zh-cn.js"));
            #endregion
        }
    }
}
